package cn.flying.system.domain.cm;

import java.io.Serializable;
import java.util.Date;

/**
 * cm_seq
 * 序列号表
 * @author MyBatis Generator 
 */
public class CmSeq implements Serializable {
    /**
     * 主键ID
     */
    private Long id;

    /**
     * 序列类型
     */
    private String seqType;

    /**
     * 序列类型描述
     */
    private String seqTypeDesc;

    /**
     * 序列头
     */
    private String seqHead;

    /**
     * 序列长度
     */
    private Integer seqLength;

    /**
     * 当前序列号
     */
    private Long curSeqNo;

    /**
     * 最小值
     */
    private Long minValue;

    /**
     * 最大值
     */
    private Long maxValue;

    /**
     * 状态
     */
    private Integer status;

    /**
     * 租户ID
     */
    private String tenantId;

    /**
     * 创建人
     */
    private String createdBy;

    /**
     * 创建时间
     */
    private Date createdTime;

    /**
     * 修改人
     */
    private String updatedBy;

    /**
     * 修改时间
     */
    private Date updatedTime;

    /**
     * 乐观锁版本号
     */
    private Long revision;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getSeqType() {
        return seqType;
    }

    public void setSeqType(String seqType) {
        this.seqType = seqType == null ? null : seqType.trim();
    }

    public String getSeqTypeDesc() {
        return seqTypeDesc;
    }

    public void setSeqTypeDesc(String seqTypeDesc) {
        this.seqTypeDesc = seqTypeDesc == null ? null : seqTypeDesc.trim();
    }

    public String getSeqHead() {
        return seqHead;
    }

    public void setSeqHead(String seqHead) {
        this.seqHead = seqHead == null ? null : seqHead.trim();
    }

    public Integer getSeqLength() {
        return seqLength;
    }

    public void setSeqLength(Integer seqLength) {
        this.seqLength = seqLength;
    }

    public Long getCurSeqNo() {
        return curSeqNo;
    }

    public void setCurSeqNo(Long curSeqNo) {
        this.curSeqNo = curSeqNo;
    }

    public Long getMinValue() {
        return minValue;
    }

    public void setMinValue(Long minValue) {
        this.minValue = minValue;
    }

    public Long getMaxValue() {
        return maxValue;
    }

    public void setMaxValue(Long maxValue) {
        this.maxValue = maxValue;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getTenantId() {
        return tenantId;
    }

    public void setTenantId(String tenantId) {
        this.tenantId = tenantId == null ? null : tenantId.trim();
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy == null ? null : createdBy.trim();
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public String getUpdatedBy() {
        return updatedBy;
    }

    public void setUpdatedBy(String updatedBy) {
        this.updatedBy = updatedBy == null ? null : updatedBy.trim();
    }

    public Date getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(Date updatedTime) {
        this.updatedTime = updatedTime;
    }

    public Long getRevision() {
        return revision;
    }

    public void setRevision(Long revision) {
        this.revision = revision;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", seqType=").append(seqType);
        sb.append(", seqTypeDesc=").append(seqTypeDesc);
        sb.append(", seqHead=").append(seqHead);
        sb.append(", seqLength=").append(seqLength);
        sb.append(", curSeqNo=").append(curSeqNo);
        sb.append(", minValue=").append(minValue);
        sb.append(", maxValue=").append(maxValue);
        sb.append(", status=").append(status);
        sb.append(", tenantId=").append(tenantId);
        sb.append(", createdBy=").append(createdBy);
        sb.append(", createdTime=").append(createdTime);
        sb.append(", updatedBy=").append(updatedBy);
        sb.append(", updatedTime=").append(updatedTime);
        sb.append(", revision=").append(revision);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}